package com.simulated.communication.pojo;

import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

/**
 * @Author Markburt
 * @Description :
 * @DATE: 2020/5/3
 * @TIME: 下午 05:42
 * @YEAR: 2020
 * @Version :
 **/
@Data
@Table(name = "chat_msg")
public class ChatMsg implements Serializable {

    private static final long serialVersionUID = 1L;
    /**
     * ID
     */
    @Id
    @Column(name = "id")
    private String id;

    /**
     * 发送人id
     */
    @Column(name = "send_user_id")
    private String sendUserId;

    /**
     * 接收人id
     */
    @Column(name = "accept_user_id")
    private String acceptUserId;

    /**
     * 消息内容
     */
    @Column(name = "msg")
    private String msg;

    /**
     * 是否已读
     */
    @Column(name = "sign_flag")
    private Boolean signFlag;

    /**
     * 消息创建时间
     */
    @Column(name = "create_time")
    private Date createTime;



}



